<!DOCTYPE html>
<head>
    <title>
       组件 
    </title>
<script src="vue.js"></script>
</head>
<body>
<div id = "app">
    <zj v-for="item in items" v-bind:one="item"></zj>
    <zj v-for="item in items1" v-bind:two="item"></zj>
</div>
<script type="text/javascript">
    Vue.component('zj',{
        props: ['one', 'two'],
        template: '<li> {{ one }}{{ two }} </li>'
    });
    var vm = new Vue({
        el : "#app",
        data : {
            items: ['java', 'linux', '前端', '后端'],
            items1: ['python', 'linux', '前端', '后端']
       },
        methods:{
        }
    });
</script>
<style type='text/css'>
    .test{color:cyan}
    .big{font-size:30px;}
    .active{background:red}
</style>
</body>
